package com.cn.web.user.vo;

import com.cn.empty.EmptyCheck;
import com.cn.validate.decode.JsonSerializerDecode;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * description: UserLoginDTO <br>
 * date: 21.12.14 13:45 <br>
 * author: cn_yaojin <br>
 * version: 1.0 <br>
 */
@Setter
@Getter
@ToString
@Accessors(chain = true)
@ApiModel(value = "移动端手机登录")
public class UserLoginByPhoneTokenDTO {

    @JsonDeserialize(using = JsonSerializerDecode.class)
    @EmptyCheck(message = "参数错误")
    @ApiModelProperty(value = "验证码")
    private String tokenId;

    @JsonDeserialize(using = JsonSerializerDecode.class)
    @EmptyCheck(message = "参数格式错误", max = 50)
    @ApiModelProperty(value = "设备名称")
    private String deviceName;

    @JsonDeserialize(using = JsonSerializerDecode.class)
    @EmptyCheck(message = "参数格式错误", max = 100)
    @ApiModelProperty(value = "设备ID")
    private String deviceId;


}
